class_name HurtMessage

## 施加方
var hitter:Node
## 受击方
var hurtter:Node
## 类型，hurt可以根据type选择处理函数
var hurt_message_type:GameEnum.HurtMessageType
## 数值
var value:float
## 回调，方法必须包含一个HurtMessage参数，value表示实际数值，特殊参数填在args中，实际就是来回传Message（value会修改为处理后的value）
var callback:Callable
## 特殊参数
var args:Dictionary

func _init(hitter:Node,hurtter:Node,hurt_message_type:GameEnum.HurtMessageType,value:float,callback:Callable = Callable(),args:Dictionary = {}) -> void:
	self.hitter = hitter
	self.hurtter = hurtter
	self.hurt_message_type = hurt_message_type
	self.value = value
	self.callback = callback
	self.args = args
